// 
// Magus noncopyable.hpp header file
//
#ifndef MAGUS_NONCOPYABLE_HPP
#define MAGUS_NONCOPYABLE_HPP

namespace magus {

//  Private copy constructor and copy assignment ensure classes derived from
//  class noncopyable cannot be copied.

//  Contributed by Dave Abrahams

class noncopyable
{
 protected:
    noncopyable() {}
    ~noncopyable() {}
 private:  // emphasize the following members are private
    noncopyable( const noncopyable& );
    const noncopyable& operator=( const noncopyable& );
};

} // namespace magus

#endif  // MAGUS_NONCOPYABLE_HPP
